﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Ele21RHelp
{
    /// <summary>
    /// 预言.xaml 的交互逻辑
    /// </summary>
    public partial class 找不同 : Window
    {
        List<string> check = new List<string>();
        public 找不同()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Button bt=sender as Button;
            var addtext = bt.Content.ToString();
            if (check.Count>11)
            {
                return;
            }
            check.Add(addtext.Substring(0,1));

        }
        /// <summary>
        /// 删除 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            if (check.Count==0)
            {
                return;
            }
            check.RemoveAt(check.Count-1);

        }
        /// <summary>
        /// 复制
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            
        }

        private void Button_Click_3(object sender, RoutedEventArgs e)
        {
            check.Clear();
        }

    }

  
}
